package com.shortchina.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Classname TshortSevice
 * @Date 2025/1/21 16:21
 * @Created by 87766867@qq.com
 */
@Configuration
@ConfigurationProperties(prefix = "tshort")
public class TshortSevice {
    private List<Secret> secret;
    private Long expire;

    // Getters and Setters
    public List<Secret> getSecret() {
        return secret;
    }

    public void setSecret(List<Secret> secret) {
        this.secret = secret;
    }

    public Long getExpire() {
        return expire;
    }

    public void setExpire(Long expire) {
        this.expire = expire;
    }

    // Nested class for Secret
    public static class Secret {
        private String AK;
        private String SK;

        // Getters and Setters
        public String getAK() {
            return AK;
        }

        public void setAK(String AK) {
            this.AK = AK;
        }

        public String getSK() {
            return SK;
        }

        public void setSK(String SK) {
            this.SK = SK;
        }

        @Override
        public String toString() {
            return "Secret{" +
                    "AK='" + AK + '\'' +
                    ", SK='" + SK + '\'' +
                    '}';
        }
    }
}
